﻿<%@ WebHandler Language="C#" Class="Handler" %>

using System;
using System.Web;
using System.Xml.Linq;
using System.Linq;
public class Handler : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.Charset = "utf-8";
        //context.Response.ContentType = "application/xml";
        context.Response.ContentType = "application/json";
        int id = int.Parse(context.Request.QueryString["Id"]);

        var data = BarberShop.BLL.AdPlayListRelationBLL.GetAdPalyListMoveInfo(id);
        var datajason = ToJson.ObjectToJson<BarberShop.Data.AdInfo>(data);
        context.Response.Write(datajason);
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}